package com.car.loan.project.cd.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.car.loan.framework.web.domain.AjaxResult;
import com.car.loan.project.cd.domain.CdCredit;
import com.car.loan.project.cd.domain.bo.CreditApplyInfoAddBo;
import com.car.loan.project.cd.domain.bo.CreditApplyInfoUpdateBo;
import com.car.loan.project.cd.domain.bo.CreditInputInfoUpdateBo;
import com.car.loan.project.cd.domain.select.CreditBaseSelect;
import com.car.loan.project.cd.domain.vo.CreditBaseVo;
import java.util.Collection;
import java.util.List;

/**
 * 征信Service接口
 *
 * @author ruoyi
 * @date 2019-10-28
 */
public interface ICdCreditService {

    /**
     * 查询征信
     *
     * @param id 征信ID
     * @return 征信
     */
    public CdCredit selectCdCreditById(Long id);

    Page<CreditBaseVo> findCreditBasePage(CreditBaseSelect creditBaseSelect);

    CdCredit save(CreditApplyInfoAddBo creditApplyInfoAddBo);

    AjaxResult update(CreditApplyInfoUpdateBo creditApplyInfoUpdateBo);

    AjaxResult input(CreditInputInfoUpdateBo creditInputInfoUpdateBo);


    /**
     * 查询征信列表
     *
     * @param cdCredit 征信
     * @return 征信集合
     */
    public List<CdCredit> selectCdCreditList(CdCredit cdCredit);

    public List<CdCredit> selectCdCreditQueryList(QueryWrapper<CdCredit> queryWrapper);

    /**
     * 查询分页数据
     */
    IPage<CdCredit> selectPage(IPage<CdCredit> page, QueryWrapper<CdCredit> queryWrapper);

    /**
     * 新增征信
     *
     * @param cdCredit 征信
     * @return 结果
     */
    public int insertCdCredit(CdCredit cdCredit);

    /**
     * 修改征信
     *
     * @param cdCredit 征信
     * @return 结果
     */
    public int updateCdCredit(CdCredit cdCredit);

    /**
     * 批量删除征信
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteCdCreditByIds(Collection<Long> ids);

    /**
     * 删除征信信息
     *
     * @param id 征信ID
     * @return 结果
     */
    public int deleteCdCreditById(Long id);
}
